export default {

    data() {
        return {
            chartHeight:0,
            chartWidth:0,
            chartHeightSize:0
        }
    },
    created() {

    },
    mounted() {
        this.getHeight();
        //增加监听事件，窗口变化时得到高度。
        window.addEventListener('resize', this.getHeight, false)
    },
    methods: {
        //获取浏览器高度并计算得到表格所用高度。
        getHeight() {
            this.chartHeight = document.getElementsByClassName("productionGeneral")[0].offsetHeight / 2.8 + 'px'
            this.chartWidth = document.getElementsByClassName("left_box")[0].offsetWidth + 'px'
            this.chartHeightSize = document.getElementsByClassName("productionGeneral")[0].offsetHeight / 2.3 + 'px'
        },
    },
    watch: {

    }
}